// SharkSettingsDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Sharks.h"
#include "SharkSettingsDlg.h"
#include ".\sharksettingsdlg.h"
#include "SharksView.h"

// CSharkSettingsDlg dialog

IMPLEMENT_DYNAMIC(CSharkSettingsDlg, CDialog)
CSharkSettingsDlg::CSharkSettingsDlg(CSharksView* pParentView)
	: CDialog(CSharkSettingsDlg::IDD, pParentView)	
	, m_pParentView(pParentView)
	, m_bShowCaustics(pParentView->m_bShowCaustics)
	, m_bShowSharkPaths(pParentView->m_bShowPaths)
	, m_bShowBoundingSpheres(pParentView->m_bShowBoundingSpheres)
	, m_bShowCredits(pParentView->m_bShowCredits)
	, m_bShowSharkShadows(pParentView->m_bShowSharkShadows)
	, m_bEnableCulling(pParentView->m_bEnableCulling)
	, m_bShowWireframe(pParentView->m_bShowWireframe)
	, m_bShowHelp(pParentView->m_bShowHelp)
{
}

CSharkSettingsDlg::~CSharkSettingsDlg()
{
	m_pParentView=NULL;
}

void CSharkSettingsDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);

	DDX_Check(pDX, IDC_CHCK_SHOWCAUSTICS, m_bShowCaustics);
	DDX_Check(pDX, IDC_CHCK_SHOWSHARKPATHS, m_bShowSharkPaths);
	DDX_Check(pDX, IDC_CHCK_SHOWBOUNDINGSPHERES, m_bShowBoundingSpheres);
	DDX_Check(pDX, IDC_CHCK_SHOWCREDITS, m_bShowCredits);
	DDX_Check(pDX, IDC_CHCK_SHOWSHARKSHADOWS, m_bShowSharkShadows);
	DDX_Check(pDX, IDC_CHCK_FRUSTUMCULLING, m_bEnableCulling);
	DDX_Check(pDX, IDC_CHCK_SHOWWIREFRAME, m_bShowWireframe);
	DDX_Check(pDX,IDC_CHCK_SHOWHELP,m_bShowHelp);
}


BEGIN_MESSAGE_MAP(CSharkSettingsDlg, CDialog)
END_MESSAGE_MAP()
